package com.hoshiibuy.fileServer.config;

import com.obs.services.ObsClient;

/**
 * 华为云obs客户端单例模式
 * 获取使用默认区域配置的obs客户端
 * 使用完毕之后请勿关闭
 * @author Mr.wu
 *
 */
public class ObsClientSingleton {
	private static final ObsClient obsClient = new ObsClient(ObsConfig.accessKey, ObsConfig.secretAccessKey,
			ObsConfig.getDefaultConfig());
	private ObsClientSingleton() {
		
	}
	public static ObsClient getInstance() {
		return obsClient;
	}
}